package de.LooLo;

import android.os.AsyncTask;

/**
 * AsyncTask to run the LooGetter if its needed
 * @author Kevin Seppelt, Lukas Siedel 
 *
 */
public class LooLoader extends AsyncTask<Object, Object, Object> {
	private MapViewActivity mva;

	@Override
	public Object doInBackground(Object... param) {
		double lat = (Double) param[0];
		double lon = (Double) param[1];
		mva = (MapViewActivity) param[2];
		double FRAME_SIZE = (Double) param[3];
		LooGetter.getInstance().getLoos(lon, lat, FRAME_SIZE);
		mva.onLoosChanged();
		LooGetter.getInstance().releaseTicket();

		return true;
	}

}
